<!doctype html>
<html>
  <body>
    <button onclick="alert('result=' + confirm('hello'))">confirm</button>
  </body>
</html>